package com.log;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @ClassDescription:
 * @Author: zhaoyi
 * @Created: 2024/7/12 10:21
 */

@SpringBootApplication
@MapperScan("com.log.mapper")
@EnableFeignClients
@EnableDiscoveryClient
public class SyncApplication {

    public static void main(String[] args) {
        SpringApplication.run(SyncApplication.class,args);
    }

    @Bean
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
